Hi All,
I'm doing one script on Juniper router where you have one FreeBSD Shell:
Is pinging from time to time one ethernet port of othere router and in case of fail is blocking one port entering in CLI and doing some command:
If I run this script all is working perfectly, but if I run in Backgroung using "&" is blocked on ping (ping -c1 $RemoteIPAddress) . Could you help me to solve this problem?
Hello all,
How do I start a background process and save the process id to a file on my system. For example %wait 5 & will execute and print the process id. I can't figure out how to get it to a file. I've tried: > filename 0>filename 1>filename.
Any assistance is most appreciated.
Thanks,
Jim... (10 Replies)
Hello All,
I am a newbie in Shell script programming, and maybe you can help me with my query.
I need to write a shell script (mntServer.ksh) that will start a background process and also to be able to run another script.
The mntServer.ksh script contains:
#!/bin/ksh... (1 Reply)
hey all,
i am working on sun solaris machine and i want to start a process in background using shell script (actually i wanna start tomcat server using shell script). please dont tell me that append a & at last because this is not working in the shell script. i have also used nohup and... (8 Replies)
Hi All,
I'm doing one script on Juniper router where you have one FreeBSD Shell:
Is pinging from time to time one ethernet port of othere router and in case of fail is blocking one port entering in CLI and doing some command:
If I run this script all is working perfectly, but if I run in... (1 Reply)
I'm not sure if it is even possible but I figured if it was someone here would know how to do it...
I am running a script which starts a bunch of processes in the background but there is one process I would like to bring back to the foreground when complete. Unfortunately the process that I... (2 Replies)
What I need to learn is how to use a script that launches background processes, and then kills those processes as needed.
The script successfully launches the script. But how do I check to see if the job exists before I kill it?
I know my problem is mostly failure to understand parameter... (4 Replies)
Hi,
I am using net::ftp for transferring files now i am trying in the same Linux server as a result ftp is very fast but if the server is other location (remote) then the file transferred will be time consuming.
So i want try putting FTP part as a background process. I am unaware how to do... (5 Replies)
Hi, i was looking for an answer for some trouble im having runing a script in the cron, thing is, that when i run it manually it works just fine. But when cron runs it, it just doenst work. I saw a reply on a similar subject, suggesting that the . .profile worked for you, but im kind of... (9 Replies)
Hi,
I have written a menu driven shell script in which as per the choice, I run the another script on background.
For eg:
1. get info
2)process info
3)modify info
All the operations have different scripts which i schedule in background using &.
However I wish to display the error... (0 Replies)
Discussion started by: ashima jain
0 Replies
LEARN ABOUT DEBIAN
ndpmon
NDPMON(8) System Manager's Manual NDPMON(8)NAME
ndpmon - Neighbor Discovery Protocol Monitor
SYNOPSIS
ndpmon [ -i interfacename ] [ -f configfile ] [ -d dtd_file ] [ -F filter ]
[ -n number ] [ -L ] [ -v ] [ -h ] [ -d dtd_file ]
[ -g neighbor_file ]
DESCRIPTION
NDPMon is a monitoring software for ipv6 Neighbor Discovery. It syslogs activity and reports by email malicious ND message. NDPMon uses
libpcap to listen for icmp6 packets and libxml2 to use configuration and neighbor cache files.
The -i flag is used to change the default interface eth0.
The -f flag is used to change the path of the configuration file. The default is /etc/ndpmon/config_ndpmon.xml
The -e flag is used to change the path to the DTD file for the configuration file. The default is /etc/ndpmon/config_ndpmon.dtd
The -n flag uses libpcap to specify a limited number of packet to capture.
The -F flag allows one to change the default icmp6 filter.
The -L flag is used to disable syslog and mail reports. This is used to do a learning phase and constitue the neighbor cache.
The -v is used to enable the DEBUG mode.
The -d flag is used to change the path to the DTD file for the neighbor cache. The default is /var/lib/ndpmon/neighbor_list.dtd
The -g flag is used to change the path to the neighbor cache. The default is /var/lib/ndpmon/neighbor_list.xml
Note that an empty neighbor_cache.xml file must be created before the first time you run ndpmon.
NDPMon must be run with root rights to work.
REPORT MESSAGES
Here's the list of the report messages generated by ndpmon:
wrong couple MAC/IP
Separately, the MAC and IP addresses are valid, but not as a couple.
wrong router mac
The ethernet address of the RA message is not specified in the configuration file.
wrong router ip
The ip address of the RA message is not specified in the configuration file.
wrong prefix
The prefix announced in the RA message is not specified in the configuration file.
wrong router redirect
The RD message does'nt come from a router specified in the configuration file.
NA router flag
The NA specifies a router but isn't one according to the configuration file.
DAD DOS
The NA answer to NS to avoid it to get an ip address.
changed ethernet address
The host switched to a new ethernet address.
flip flop
The ethernet address has changed from the most recently seen address to the second most recently seen address.
reused old ethernet address
The ethernet address has changed from the most recently seen address to the third (or greater) least recently seen address.
SYSLOG MESSAGES
Here are some of the syslog messages; note that messages that are reported are also sysloged.
new activity
This ethernet/ip6 address pair has been announced for last time two months or more.
new station
The ethernet address has not been seen before on the link.
ethernet broadcast
The mac ethernet address of the host is a broadcast address.
ip broadcast
The ip address of the host is a broadcast address.
bogon The source ip address is not local to the local subnet.
ethernet mismatch
The source mac ethernet address didn't match the address announced in option of the ND message.
FILES
config_ndpmon.xml - contains settings which must be fill by the administrator
neighbor_list.xml - neighbor cache: all neighbors known to be on the link
SEE ALSO arpwatch(8)ipv6(7), pcap(3), libxml(3).
AUTHOR
Thibault Cholez and Frederic Beck for MADYNES Project, Loria, Fr.
BUGS
Please send bug reports to frederic.beck@loria.fr
or thibault.cholez@esial.uhp-nancy.fr
November 2006 NDPMON(8)