Search Results

Search: Posts Made By: mitch
5
6,739
Posted By mitch
that worked like a champ. thanks.
that worked like a champ. thanks.
46,827
Posted By mitch
Score one for Perderabo
sed '-e/10.0.0.1/{;s/10.0.0.1//;:a' '-en;ba' '-e}' <file

Works like a champ. Thank you.
46,827
Posted By mitch
I have a list of IPs, and I want to delete just...
I have a list of IPs, and I want to delete just '10.0.0.1'. I would like a sed/awk solution that will only delete '10.0.0.1' and not modify all the IPs
10.0.0.1
10.0.0.2
10.0.0.3
10.0.0.4...
Forum: IP Networking 05-03-2009
4,863
Posted By mitch
Sure, it is kind of a round about way but it will...
Sure, it is kind of a round about way but it will work. Try using lynx which is just a text based web browser and visit IP Chicken - Whats my IP address? ip address lookup (http://www.ipchicken.com)
14,311
Posted By mitch
So thanks to Christoph's help, this little betty...
So thanks to Christoph's help, this little betty will query a subnet of devices (Cisco) and report enviroment variables to a mysql db.

#!/bin/bash
# Removes all data from working files
cat...
14,311
Posted By mitch
awesome, just go back to work today and I'm going...
awesome, just go back to work today and I'm going to play around with this. Thank you and I will post the complete working code once it is. thank you.
14,311
Posted By mitch
Chris, Thanks for the suggestion of a one liner...
Chris,
Thanks for the suggestion of a one liner for sed, I'll change that but what I need the if to do is...

snmpwalk -v 3 -u user -l AuthNoPriv -A password "$ip" "$3550mib", if the output from...
1,709
Posted By mitch
This sounds like a search on an iPhone because I...
This sounds like a search on an iPhone because I know they use .app. I use Fedora and Redhat and we don't have any .app but if you have your /etc/snmp/snmpd.conf defined you can snmpwalk for...
Forum: SuSE 11-27-2008
2,504
Posted By mitch
I don't know what you are doing to get an...
I don't know what you are doing to get an 'upgrading the rpm' but if you are using a redhat based system like Fedora or Cent OS you can always use `yum update` or `yum -y update` or even `yum -y...
14,311
Posted By mitch
using if to identify proper mib for use with a cisco switch
Happy ThanksGiving guys,

I'm working on a script that will use nmap to enumerate a network for active cisco switches. Once the list is complete, we use sed to clean up the file (called nmapres)...
11,273
Posted By mitch
Nice, thank you for explaining.
Nice,
thank you for explaining.
11,273
Posted By mitch
Radoulov. In like flyn. the bottom code you...
Radoulov.

In like flyn. the bottom code you supplied also worked awesome. thank you for your help. Can you take a min to explain how it works? I understand the basics of sed
's = substitute ...
11,273
Posted By mitch
No luck Radoulov, i received an error that...
No luck Radoulov,
i received an error that reads

sed: -e expression #1, char 22: unterminated `s' command

char 22 is a } and phpdesigner2008 doesn't see a problem with that.
11,273
Posted By mitch
Awesome Franklin52, Worked like a champ. If...
Awesome Franklin52,

Worked like a champ. If you don't mind elaborating on the code so I can understand what is going on.

Thank you.
11,273
Posted By mitch
single line input to multiple line output with sed
hey gents,

I'm working on something that will use snmpwalk to query the devices on my network and retreive the device name, device IP, device model and device serial. I'm using Nmap for the...
Showing results 1 to 15 of 15

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