Search Results

Search: Posts Made By: mrlayance
1,588
Posted By mrlayance
How would I trim the results in my array from a...
How would I trim the results in my array from a result of a match? Would I do that before with a new array? Totally lost.

foreach (@version_info) {
if ($_ =~ /(.*) is down,...
1,588
Posted By mrlayance
I think I know the issue. The show...
I think I know the issue.

The show command shows all ports that match the criteria.

GigabitEthernet1/0/3 is down, line protocol is down (notconnect)
Last input never, output never,...
1,588
Posted By mrlayance
Perl Regex problem
Script logs into switches on my list but nothing seems to happen.

Following error:
[ 5.546199] tr nope, doesn't (yet) match (?-xism:[\/a-zA-Z0-9._\[\]-]+ ?(?:\(config[^)]*\))? ?[#>] ?$)
[...
1,013
Posted By mrlayance
Display text is string matches below.
I have not idea how I would accomplish this. I have a script that scans for CDP neighbours. I get the results in a file. I am interested in CDP Neighbor Details if name BSWITCH shows up. If BSWITCH...
1,351
Posted By mrlayance
2 lists, show differences plus or minus
Not really sure how to accomplish this. If I have two lists with matching columns. Second column is different. I would like to show the differences plus/minus.

list1

device1 5
...
2,055
Posted By mrlayance
Yes, correct.
Yes, correct.
2,055
Posted By mrlayance
Remove multiple lines that match pattern
Not sure how I can accomplish this. I would like to remove all interfaces that have the commands I would like to see: switchport port-security, spanning-tree portfast. One line is no problem.

...
1,116
Posted By mrlayance
Excuting perl script from within a perl script with variables.
Not sure what I am doing wrong here, but I can print the list with no issue. Just a blank screen with the 'do'.

#!/usr/bin/perl
open FILE, "upslist.txt";

while ($line=<FILE>){
if...
1,733
Posted By mrlayance
Converting columns of a text file.
Not sure the most effient way to do this.

I have figiured out how to extract columns with shell script, but not sure how to convert

This is what I have...

NEWDNS 04-Jun-2011 06:00:59.762...
880
Posted By mrlayance
Thanks
Thanks
880
Posted By mrlayance
PHP quote question
I have a problem, I can't find the answer.

I have the following code:
while($row = mysql_fetch_array($sql))
{
$newtime = $row['newtime'];
$octet = $row['octet'];
echo...
1,378
Posted By mrlayance
Matching 2 items in a string
Little lost here, I am trying to search a line for both values after the $ signs. My ultimate goal is to get percertage.

<?php
$string = "Something on sale for $4 and orginal price $10";...
1,142
Posted By mrlayance
Opps, my php script scrapes html, just got it...
Opps, my php script scrapes html, just got it backwards. Need more maybe less coffee....

More importantly, do you have an answer to my question....?
1,142
Posted By mrlayance
HTML question /!/
I have never seen this before and my xpath script does not like it...

<img src=/!/img/zero.gif width=116 height=1>

Is this a replacement to ./ ?

Removed bogus references to PHP in topic...
Forum: Solaris 08-09-2010
2,048
Posted By mrlayance
Sun Solaris Coolstack issue
I have coolstack running on my solaris 10 server.

Everytime I make a change to a php script I have to restart apache for the changes to take effect?

Not sure if the issue is with apache or...
1,726
Posted By mrlayance
Help with sort folder results
Here is the code, but the list is not sorted properly (alphabetically)?

<?php
function folderlist(){
$startdir = './';
$ignoredDirectory[] = '.';
$ignoredDirectory[] = '..';
if...
Forum: Infrastructure Monitoring 05-27-2010
2,299
Posted By mrlayance
Ok, I have a list of devices. Device A,...
Ok,

I have a list of devices. Device A, Device B, etc.

I am trying to get the snmp variables from each device. Name, IOS and ROM. All 3 variables will responsed if the device is online. ...
Forum: Infrastructure Monitoring 05-27-2010
2,299
Posted By mrlayance
if ( $data{name} = $s->get('sysName') ) #What...
if ( $data{name} = $s->get('sysName') ) #What exactly are you trying to do here??
( $data{sys} = $s->get('sysDescr') )
( $data{rom} = $s->get('romId') ){

I am trying to loop...
Forum: Infrastructure Monitoring 05-26-2010
2,299
Posted By mrlayance
Perl Error Handling Problem
I can get this working, but if something is down I get an error and the script does not move on. I can not get the "else" function working. What might I be doing wrong?


use SNMP::Simple
my...
4,005
Posted By mrlayance
Convert perl qw list to text file list?
Does anyone have a good example? I am having trouble looping..

Thanks
Forum: Infrastructure Monitoring 04-30-2010
2,128
Posted By mrlayance
Thanks, I must be blind..
Thanks, I must be blind..
Forum: Infrastructure Monitoring 04-30-2010
2,128
Posted By mrlayance
Perl Loop Problem
Another newbie question... I can not figure out how to get this running using a loop. Here is what I have now.

#!/usr/bin/perl
use SNMP::Info;
$list="list.list";...
Forum: Infrastructure Monitoring 04-28-2010
11,489
Posted By mrlayance
Well that made it worse... Now none of the mibs...
Well that made it worse... Now none of the mibs are working?

I am using net-snmp 5.2.

This one has me stumped.

---------- Post updated 04-28-10 at 10:07 AM ---------- Previous update was...
Forum: Infrastructure Monitoring 04-27-2010
11,489
Posted By mrlayance
net-snmp issue
When I run a script that polls a router I get the following error from net-snmp. I can not seem to find a straight answer. Could my mib files be corrupt?

xxx-xxx:/etc/sma/snmp/mibs# perl...
1,799
Posted By mrlayance
php class
I was hoping you could help me out? Is it possible to add the ability to choose multiple directions to search within? I can have not figured out how to build the array with the form, something todo...
Showing results 1 to 25 of 47

 
All times are GMT -4. The time now is 06:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy