Problem Running An AntNet Tcl Script!

Hey guys,

So i'm trying to run AntNet on ns-2.34 and i'm currently getting this error when i try running an antnet tcl script (ns antnet.tcl). Can anybody help? Here's the error i get:

--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
_o21: no target for slot 4294967295
_o21 type: Classifier/Hash/Dest
content dump:
classifier _o21
0 offset
0 shift
2147483647 mask
1 slots
slot 3: _o401 (Classifier/Port)
-1 default
---------- Finished standard no-slot{} default handler ----------

Thanks.


Similar Content



Wireless Fail - Netgear Wg311t On Xubuntu

The most recent info on this card is about 10 years old.

The story is that I had an old dying PC with a vast accumulation of dust, causing sparks to fly.
I transferred the disk & wireless card across to a "known good PC" - and "amazingly" it worked.

This lasted for about a week.
OS is Xubuntu 12.04 and recommended updates of an unknown nature were applied from repositories & PPA's (not by me).

Soon after, wireless on the ancient Netgear wg311t PCI card failed.
I've tried moving it to a different slot - still does not work.
I've tried booting up from a Xubuntu 14.04.2 DVD - still does not work.
The two slots give slightly different results to the command Code:
dmesg | grep ath5k

First slot Code:
[   63.714417] ath5k 0000:05:06.0: registered as 'phy0'
[   63.733142] ath5k: phy0: failed to wakeup the MAC Chip
[   63.733482] ath5k: probe of 0000:05:06.0 failed with error -5

Second slot Code:
[   13.594859] ath5k 0000:05:08.0: PCI INT A -> Link[APC3] -> GSI 18 (level, low) -> IRQ 18
[   13.594943] ath5k 0000:05:08.0: registered as 'phy0'
[   13.606136] ath5k phy0: failed to wakeup the MAC Chip
[   13.606531] ath5k 0000:05:08.0: PCI INT A disabled
[   13.606768] ath5k: probe of 0000:05:08.0 failed with error -5

I'm prepared to buy a replacement card - so long as it is cheap!

Conky Script Not Found

guys help me plz............

i have install conky in my kali linux by using this command.

sudo apt-get install conky
sudo apt-get install conky-all

every thing is working fine but i wanted to change my default conky script so i used these command ..


leafpad ~/.conkyrc

to open my default conky script page but it open only blank page ...where is my default conky script page i can not find it?????


how can i find my deafult conky script page........... thanks

Need Help With Shell Script

Hi guys I just started learning Linux, Need some help writing the script for the following

1. An argument of the form-6 sets the script to display the first 6 lines of the succeeding file(s). the default should be 5.

2. Anything else of the form "-x" should produce an error message

3. For a file name, display the first _lines of the file

Honeyd Error While Running With Honeyd.conf In Kali Linux

hi there once again
Now I am getting this problem which running the cmd "honeyd -d -f honeyd.conf"
root@kali:/etc/honeypot# honeyd -d -f honeyd.conf
Honeyd V1.5c Copyright (c) 2002-2007 Niels Provos
honeyd[4726]: started with -d -f honeyd.conf
honeyd[4726]: listening promiscuously on eth0: (arp or ip proto 47 or (udp and src port 67 and dst port 68) or (ip )) and not ether src 98:4b:e1:94:62:46
honeyd[4726]: [eth0] trying DHCP
honeyd[4726]: Demoting process privileges to uid 65534, gid 65534
honeyd[4726]: [eth0] got DHCP offer: 192.168.23.2
honeyd[4726]: Updating ARP binding: 00:00:24:26:26:1d -> 192.168.23.2
honeyd[4726]: arp reply 192.168.23.2 is-at 00:00:24:26:26:1d
honeyd[4726]: TTL exceeded for dst 224.0.0.22 at gw 10.0.0.1
honeyd[4726]: No reverse routing map for 10.0.0.1
honeyd[4726]: TTL exceeded for dst 224.0.0.22 at gw 10.0.0.1
honeyd[4726]: No reverse routing map for 10.0.0.1
honeyd[4726]: TTL exceeded for dst 224.0.0.22 at gw 10.0.0.1
honeyd[4726]: No reverse routing map for 10.0.0.1
honeyd[4726]: TTL exceeded for dst 224.0.0.22 at gw 10.0.0.1
honeyd[4726]: No reverse routing map for 10.0.0.1

what does it mean? because it starts to spam the terminal with such errors. or it is not??

I think, I have to edit the "honeyd.conf" file, but no clue.
the following is my honeyd configuration.

route entry 10.0.0.1
route 10.0.0.1 link 10.2.0.0/24
route 10.0.0.1 add net 10.3.0.0/16 10.3.0.1 latency 8ms bandwidth 10Mbps
route 10.3.0.1 link 10.3.0.0/24
route 10.3.0.1 add net 10.3.1.0/24 10.3.1.1 latency 7ms loss 0.5
route 10.3.1.1 link 10.3.1.0/24

# Example of a simple host template and its binding
create template
set template personality "Microsoft Windows XP Professional SP1"
set template uptime 1728650
set template maxfds 35
# For a complex IIS server
add template tcp port 80 "sh /usr/share/honeyd/scripts/win32/web.sh"
add template tcp port 22 "/usr/share/honeyd/scripts/test.sh $ipsrc $dport"
add template tcp port 23 proxy $ipsrc:23
add template udp port 53 proxy 141.211.92.141:53
set template default tcp action reset
# Use this if you are not running honeyd as 'honeyd' user:
# Debian-specific (use nobody = 65534 instead of 32767)
# set template uid 65534 gid 65534

create default
set default default tcp action block
set default default udp action block
set default default icmp action block

create windows
set windows personality "Microsoft Windows XP Professional SP1"
set windows default tcp action reset
add windows tcp port 135 open
add windows tcp port 139 open
add windows tcp port 445 open

set windows ethernet "00:00:24:ab:8c:12"
dhcp windows on eth0


urgent help needed please. thanks in advance

Problem In Executing Script Through Crontab

Hi,
I have written one script which is connecting to the the daabase and generating one CSV, it is running fine when i ran it manually though it is throwing any warning but CSV is genearting and working fine but same script when i have configured in crontab not working and giving error, kindly help.

script contents:

#!/bin/bash
sqlplus -s /nolog << EOF
CONNECT plmc/plmb@whb
@csvgenerator.sql
end;
/
EOF
-----------------------------------
Script running successfully as below, though it is giving below message but running fine

$ sh test.sh
SP2-0734: unknown command beginning "sqlplus ct..." - rest of line ignored.

Session altered.
CSV geneartaed

Same Script giving error while triggering by crontab as below

$ sqlplus: not found

PcDuino 3 Nano Or Odroid-C1 For A Home Server?

The Centrino laptop I have as my server seems like overkill so I am looking at some alternatives. At first I was going to use a Raspberry Pi but someone on these forums pointed out there are better solutions. This lead me to the pcDuino 3 Nano and the Odroid-C1

First, my server will handle a printer, a file repository, simple backups of the most vital files (Pictures, documents, etc), and coordinate my webcam surveillance feeds (I think zoneminder?) . The problem is I am a PC guy and have little more than basic information about linux or ARM architecture. The only ARM device I own, aside from cell phones, is a Pogoplug that I have managed to kill by trying to put linux on it.

I am cruising Google trying to glean as much information as I can but the level of ignorance on my part is staggering. This leads me to you wonderful people.

To make things easier, the specs:

pcDuino 3 Nano
1 gig of RAM
1GHz Cortex A7 Duel Core CPU
4GB flash memory + micro SD card slot
3 USB ports and 1 SATA, among others

Odroid-C1
1 gig of RAM
1.5Ghz Cortex A5 quad core CPU
micro SD card slot
4 USB ports among others

From my untrained eye, I think the pcDuino is the better choice due to the SATA port but the Odroid does have a quad core CPU. Will linux take advantage of those extra cores? Also, since these are ARM CPUs I understand they won’t run normal linux distributions. Will I have problems with SAMBA, CUPS and RSYNC? My research says no but I’d like to confirm before I spend the money.

As always thank you in advance.

What Is The Best Way To Trap An Error In A Script

Hi All.

I am running a script that copies files to a USB disk.

What I would like to do is run another script if the USB disk get disconnected before the copying is done.

TIA.

Ant.

File Managers

hi,

what file manager is everybody using?
does it really matter...

cant find what the default file manager there is for centos 7
but it has dolphin installed as well but doesnt use it by default
im running gnome 3

i read that konqueror is good...is it mostly just preference

lastly

do most linux systems have components of kde and gnome installed by default...even if you arent using those desktops? cause i dont have kde desktop installed yet i read that dolphin uses kde.

Automating Script To Run Every Minute Through Other Manually Created User Using Crond

Hy All,

I have two nodes running RHEL 6.4 which are in cluster. I have clustered httpd service. Now I have certain application suppose X which reside in SAN partition. Now my job is to only automate this script to run by analyzing httpd status. I have successfully created the script apptrigger.sh whose content is given below,

-bash-4.1$ cat apptrigger.sh
a=0
b=0
c=0
d=0
a="service httpd status"
b=`eval $a`
##### CHECKING WHETHER HTTPD SERVICE IS RUNNING OR NOT #####
if [ "$b" != "httpd is stopped" ]; then
c="bash /switchapp/switch/ezlinkenterprise/bin/ezlink-cluster.sh status"
d=`eval $c`
##### CHECKING WHETHER EZ IS RUNNING OR NOT #####
if [ "$d" != "EzTaskMgr is Running" ]; then
ezstart
fi
fi

I have created this script in say test user. Now when I put this script to automate or run every minute through test user and defined its value in crontab -e of test user whose content is as shown below
$crontab -l
* * * * * /bin/bash /home/test/apptrigger.sh

but this script is running as root user so I cannot get the o/p
I think some environment variable need to be set. Anyone can guide me with this step? Thanks for your views and suggestion.

Error Message On Boot Up In Fedora 21

Hi Folks,
I am a relative newbie to linux.
I am running Fedora 21 from an external USB Hard Drive and get the following message after Grub has loaded. Any help in resolving this is very much appreciated.

: [sdb] No Caching mode page found
[ 4.407772]sd 4:0:0:0 [sdb] assuming drive cache: write through
Welcome to emergency mode! After logging in, type "journalctl -xb" to view
Systems logs, "systemsctl rebboot" to reboot, "systemctl default" or ^D to Try again to boot into default mode.
Give root password for maintenance (or press Control-D to continue):
[ 26.078356] ldv: disabled by bios
[ 36.249164]system-fsck[628]: /dev/sdb3: clean, 403/128016 files, 174669/512000

Thanks