Welcome, Guest. Please login or register.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - redpineapple

Pages: [1] 2 3 4
1
Installation / Re: Fortigate hacks
« on: August 31, 2015, 11:57:19 AM »
Yes,  this is for backups.

You need to copy a version of your oid in sysobj to one that is similar to .1.3.6.1.4.1.12356

copy:
1.3.6.1.4.1.12356.101.1.2001.def   1.3.6.1.4.1.12356.101.1.2003.def
1.3.6.1.4.1.12356.101.1.30400.def to 1.3.6.1.4.1.12356.101.1.30401.def

Lines need to be modified at @334 and @1173

2
Installation / Fortigate hacks
« on: August 28, 2015, 09:39:03 AM »
So this is how I have Fortigates working:

In libcli:

Code: [Select]
# Fortigate
$cmd{'FortiOS'}{'ropr'} = '\$.$';
$cmd{'FortiOS'}{'enpr'} = '\$.$';
$cmd{'FortiOS'}{'conf'} = 'show full-configuration';
$cmd{'FortiOS'}{'strt'} = '^config';
$cmd{'FortiOS'}{'more'} = '--More--';

Code: [Select]
                my $l = '';
                my $mcol = 0;
                my $promptmatch = "$cmd{$os}{'enpr'}";
                &misc::Prt("MORE:");
                do{
                        ($pre, $match) = $session->waitfor("/$cmd{$os}{more}|$promptmatch/i");
                        $pre =~ s/\x08|\x1b\[16D\s*|\x1b\[42D\s*//g;                                    # Get rid of backspaces after more prompt and potential \r
                        $l .= $pre;
                        $session->put(" ") if $match eq "$cmd{$os}{more}";
                        &misc::Prt(".");
                        &misc::Prt("\nMORE:") unless $mcol % 78;
                        $mcol++;
                }while($match !~ /$promptmatch/i);

Maybe it will save someone some time!!!!

3
Installation / Latency
« on: March 28, 2015, 07:38:28 AM »
I'm using ubuntu 14.10
Here is a ping

PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=63 time=0.688 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=63 time=0.688 ms
64 bytes from 192.168.0.1: icmp_seq=3 ttl=63 time=0.737 ms
64 bytes from 192.168.0.1: icmp_seq=4 ttl=63 time=0.697 ms
64 bytes from 192.168.0.1: icmp_seq=5 ttl=63 time=0.698 ms

NeDi reports this device as 6 or 7 ms and not 0.6 or 0.7 ms

/r

4
News / Toolbox
« on: July 18, 2014, 06:32:16 AM »
In Nodes-Toolbox I use a different set of tools:
- fping (a better ping)
- mtr (a better traceroute)
- tracepath (provides info on mtu)
- httping (check websites)

fping seems not to work with system and only way I could make it work was as below.

To add the tools: sudo apt-get install sudo apt-get install fping mtr iputils-tracepath httping

Code: [Select]
if($do == "Ping"){
        echo "<h2>$ping_count Ping(s) with $ping_size bytes to $dest</h2><div class=\"textpad code txta\">";
        if(preg_match("/OpenBSD|Linux/",PHP_OS) ){
                echo "Using fping...\n";
                $fpingoutput = shell_exec("fping -c $ping_count -b $ping_size $dest 2>&1");
                echo "$fpingoutput";
        }elseif(preg_match("/^win/",PHP_OS) ){
                system("ping -n $ping_count -l $ping_size $dest");
        }
}elseif($do == "mtr"){
        echo "<h2>mtr $dest</h2><div class=\"textpad code txtb\">";
        system("mtr -r -c $ping_count $dest");
}elseif($do == "TracePath"){
        echo "<h2>TracePath $dest</h2><div class=\"textpad code txtb\">";
        system("tracepath -n $dest");
}elseif($do == "Ping Range"){
        echo "<h2>Nmap Ping Range of $dest</h2><div class=\"textpad code txtb\">";
        system("nmap -sP $dest");
}elseif($do == "HTTP ping"){
        echo "<h2>httping $dest</h2><div class=\"textpad code txtb\">";
        system("httping -c $ping_count $dest");
}else{

5
News / Re: High level chart?
« on: July 16, 2014, 10:45:03 AM »
Yep, a toprrd in Monitoring-Health would be perfect.

Another idea would be to tail the last 100 lines of the log and store it (maybe when a configuration backup is done).  Things that would be different is that a diff won't be useful as the user auth is always in the logs.   Additionally, a mechanism needs to be in place to prevent the log being stored more than once a day.

6
News / Beta accounts on beta
« on: July 16, 2014, 10:37:25 AM »
Hi

The last login always says 1.Jan 70 1:00

Regards

7
News / Re: 1.1.155 Mods
« on: July 14, 2014, 06:04:01 PM »
Code: [Select]
DisProtocol ------------------------------------------------------------------ SNMP:Connect 10.10.13.119 ******* v2 Tout:7s MaxMS:4095 LLXN:5 index 5 is IF index 10005 LLXN:6 index 6 is IF index 10006 LLXN:4 index 4 is IF index 10004 LLXN:12 index 12 is IF index 10012 LLXN:7 index 7 is IF index 10007 LLXN:8 index 8 is IF index 10008 LLXN:11 index 11 is IF index 10011 LLXN:1 index 1 is IF index 10001 LLXN:9 index 9 is IF index 10009 LLXN:3 index 3 is IF index 10003 LLXN:2 index 2 is IF index 10002 LLXN:10 index 10 is IF index 10010 ERR :LLDP Inventory The requested table is empty or does not exist MAP :Mapped ip to 0.0.0.0 MAP :Mapped ip to 0.0.0.0 NEB :10002.2 DIPR:Using IP 10.10.14.133 from DB for ME-GP0365-BCX_SATF_IBM_BCRS LLDP:ME-GP0365-BCX_SATF_IBM_BCRS,FaPort 10.10.14.133 on 2 WLNK:Link exists from ME-GP0274_IBM_Business,2 to ME-GP0365-BCX_SATF_IBM_BCRS,FaPort. Updating LLDP link LLDP:Queueing of ME-GP0365-BCX_SATF_IBM_BCRS is not desired NEB :10002.1 Use of uninitialized value in sprintf at /var/nedi/inc/libsnmp.pm line 1986. Use of uninitialized value in substitution (s///) at /var/nedi/inc/libsnmp.pm line 1987. Use of uninitialized value in pattern match (m//) at /var/nedi/inc/libsnmp.pm line 2011. Use of uninitialized value in pattern match (m//) at /var/nedi/inc/libsnmp.pm line 2019. Use of uninitialized value in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 2022. :10.10.14.133, 10.10.14.133 on 2 Use of uninitialized value in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 2023. Use of uninitialized value in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 2023. Use of uninitialized value in hash element at /var/nedi/inc/libsnmp.pm line 2025. Use of uninitialized value in hash element at /var/nedi/inc/libsnmp.pm line 2026. Use of uninitialized value in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 2027. Use of uninitialized value in hash element at /var/nedi/inc/libsnmp.pm line 2027. Use of uninitialized value in hash element at /var/nedi/inc/libsnmp.pm line 2028. Use of uninitialized value in hash element at /var/nedi/inc/libsnmp.pm line 2029. Use of uninitialized value $ni in concatenation (.) or string at /var/nedi/inc/libdb.pm line 1194. Use of uninitialized value $ni in hash element at /var/nedi/inc/libdb.pm line 1194. Use of uninitialized value in concatenation (.) or string at /var/nedi/inc/libdb.pm line 1194. Use of uninitialized value $ni in concatenation (.) or string at /var/nedi/inc/libdb.pm line 1211. Use of uninitialized value $ni in hash element at /var/nedi/inc/libdb.pm line 1211. Use of uninitialized value in concatenation (.) or string at /var/nedi/inc/libdb.pm line 1211. WLNK:No link from ME-GP0274_IBM_Business,2 to 10.10.14.133,. Creating link Use of uninitialized value $ni in hash element at /var/nedi/inc/libdb.pm line 1213. Use of uninitialized value $ni in hash element at /var/nedi/inc/libdb.pm line 1213. Use of uninitialized value $ni in hash element at /var/nedi/inc/libdb.pm line 1213. Use of uninitialized value $ni in hash element at /var/nedi/inc/libdb.pm line 1213. Use of uninitialized value $ni in hash element at /var/nedi/inc/libdb.pm line 1213. Use of uninitialized value in pattern match (m//) at /var/nedi/inc/libsnmp.pm line 2043. Use of uninitialized value in pattern match (m//) at /var/nedi/inc/libsnmp.pm line 2043. :Queueing of 10.10.14.133 Use of uninitialized value in hash element at /var/nedi/inc/libsnmp.pm line 2180. is not desired NEB :10008.2 Use of uninitialized value in sprintf at /var/nedi/inc/libsnmp.pm line 1986. Use of uninitialized value in substitution (s///) at /var/nedi/inc/libsnmp.pm line 1987. Use of uninitialized value in exists at /var/nedi/inc/libsnmp.pm line 2006. :Ignoring neighbor with no name or ip on 8 NEB :10008.8 DIPR:Using IP 10.10.12.56 from DB for ME-Ovations-GP0421 LLDP:ME-Ovations-GP0421,8 10.10.12.56 on 8 WLNK:Link exists from ME-GP0274_IBM_Business,8 to ME-Ovations-GP0421,8. Updating LLDP link LLDP:Queueing of ME-Ovations-GP0421 is not desired NEB :10008.1 Use of uninitialized value in sprintf at /var/nedi/inc/libsnmp.pm line 1986. Use of uninitialized value in substitution (s///) at /var/nedi/inc/libsnmp.pm line 1987. Use of uninitialized value in pattern match (m//) at /var/nedi/inc/libsnmp.pm line 2011. Use of uninitialized value in pattern match (m//) at /var/nedi/inc/libsnmp.pm line 2019. Use of uninitialized value in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 2022. :10.10.12.56, 10.10.12.56 on 8 Use of uninitialized value in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 2023. Use of uninitialized value in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 2023. Use of uninitialized value in hash element at /var/nedi/inc/libsnmp.pm line 2025. Use of uninitialized value in hash element at /var/nedi/inc/libsnmp.pm line 2026. Use of uninitialized value in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 2027. Use of uninitialized value in hash element at /var/nedi/inc/libsnmp.pm line 2027. Use of uninitialized value in hash element at /var/nedi/inc/libsnmp.pm line 2028. Use of uninitialized value in hash element at /var/nedi/inc/libsnmp.pm line 2029. Use of uninitialized value $ni in concatenation (.) or string at /var/nedi/inc/libdb.pm line 1194. Use of uninitialized value $ni in hash element at /var/nedi/inc/libdb.pm line 1194. Use of uninitialized value in concatenation (.) or string at /var/nedi/inc/libdb.pm line 1194. Use of uninitialized value $ni in concatenation (.) or string at /var/nedi/inc/libdb.pm line 1211. Use of uninitialized value $ni in hash element at /var/nedi/inc/libdb.pm line 1211. Use of uninitialized value in concatenation (.) or string at /var/nedi/inc/libdb.pm line 1211. WLNK:No link from ME-GP0274_IBM_Business,8 to 10.10.12.56,. Creating link Use of uninitialized value $ni in hash element at /var/nedi/inc/libdb.pm line 1213. Use of uninitialized value $ni in hash element at /var/nedi/inc/libdb.pm line 1213. Use of uninitialized value $ni in hash element at /var/nedi/inc/libdb.pm line 1213. Use of uninitialized value $ni in hash element at /var/nedi/inc/libdb.pm line 1213. Use of uninitialized value $ni in hash element at /var/nedi/inc/libdb.pm line 1213. Use of uninitialized value in pattern match (m//) at /var/nedi/inc/libsnmp.pm line 2043. Use of uninitialized value in pattern match (m//) at /var/nedi/inc/libsnmp.pm line 2043. :Queueing of 10.10.12.56 Use of uninitialized value in hash element at /var/nedi/inc/libsnmp.pm line 2180. is not desired

8
News / Re: 1.1.155 Mods
« on: July 13, 2014, 07:55:02 PM »
6 (Rad CCPT-WC0309B-10.65.8.215) 10.65.8.215 [Lookup] [Nodes List] [Monitoring-Events] LLDP:M changed type from LLDP

All LLDP discos come up with the above event?  Seems to look at the first 6 chars instead of the first 4?

9
News / High level chart?
« on: July 12, 2014, 12:32:45 PM »
Hi

I think the below is a good high level chart as a variance will indicate a wider problem:
Code: [Select]
SELECT AVG(latency) as "Average network latency" FROM `monitoring`;
\r

10
News / Re: 1.1.155 OUI discovery
« on: July 08, 2014, 01:47:51 PM »
If fixed it by doing this:

Code: [Select]
}elsif($misc::arp{$mcvl} !~ /$misc::netfilter/){      # ...or not usable
                                        &misc::Prt("OUI :IP not usable\n");
                                        $fl++;
                                }else{
                                        &misc::Prt("OUI :MAC or '$oui' matches ouidev\n");
                                        $ip = $misc::arp{$mcvl};
                                        $ad += misc::CheckTodo($mc,&misc::MapIp($ip,'ip') );
                                }

11
News / Re: 1.1.155 OUI discovery
« on: July 08, 2014, 07:21:45 AM »
Code: [Select]
NMP:Connect 10.8.54.250 public v2 Tout:2s MaxMS:1472
ARPS:000c4240914e 10.8.54.1 on bridge1 vl
OUI :MAC or 'Routerboard.com' matches ouidev
Use of uninitialized value $ip in exists at ./inc/libmisc.pm line 607.
Use of uninitialized value $tgt in pattern match (m//) at ./inc/libmisc.pm line 881.
ERR :Resolving SEED 000c4240914e!
ARPS:1 IP and 0 IPv6 entries found

Progressed further but now an issue as above^

12
News / Re: 1.1.155 Mods
« on: July 08, 2014, 07:13:52 AM »
Roundabouts 580 in Devices-Status.

Added ability to show log file on Ciena switches and also added some extra command (eg. show backbone status or registered wireless clients and strength).

Code: [Select]
        if($isadmin and $rver){
                if($cliport){
                        if($login){
                                if( preg_match("/^(IOS|EOS|Ironware|ProCurve|Nortel)/",$os) ){
                                        $shlog = "show log";
                                }elseif($os == "SAOS"){
                                        $shlog = "log flash view";
                                        $shwr = "pbt show\ncfm show";
                                }elseif($os == "LEOS"){
                                        $shlog = "log flash view tail 50";
                                        $shwr = "pbt show\ncfm show";
                                }elseif($os == "ROS"){
                                        $shlog = "log print";
                                        $shwr = "interface wireless registration-table print";
                                }elseif($os == "CatOS"){
                                        $shlog = "show logging buf";

13
News / Re: 1.1.155 Mods
« on: July 08, 2014, 07:06:55 AM »
How to access the cli of a mikrotik, use +cte after user name in nedi.conf

usr    admin+cte        somepassword

14
News / Re: 1.1.155 Mods
« on: July 08, 2014, 07:04:08 AM »
Some updated defs

6509, tik and winlink.

15
News / 1.1.155 Mods
« on: July 07, 2014, 06:45:24 PM »
How is there any easy way to see if moni.pl -D is running?  I usually go to system-service and then check in the ps block if it is there?

Recently someone put an apostrophe ' in a device name and in crashed both nedi.pl and moni.pl.

I had to rename the device and then delete the old device.  Also I had to delete all reference's to the device with the ' in interfaces.  I did this manually using sqlbuddy.

Pages: [1] 2 3 4