Tag Info

New answers tagged

0

I am not familiar with snmpwalk but it seems from the question (and from my former invalid answer) that it produces several lines of output. It also seems to me like most of the result of your script is repetitive/redundant, i.e. there are always two lines with the format: A,B,C ... A,B,D and you want another ouput with half the lines and looking like ...


0

A simple route forward is to put the output of each invocation of snmpwalk into a variable and then concatenate them with a little awk filtering, something like: #!/bin/sh DBFILE=$(cat /tmp/routers.all | awk -F: '{print $1}'| grep access) for OUTPUT in $DBFILE do FIRST_HALF=`/usr/bin/snmpwalk -Os -c pass -v 2c $OUTPUT iso.0.8802.1.1.2.1.4.1.1.8.0 | tr ...


1

There are two types of filesystem drivers: kernel or userland. Kernel filesystem drivers are the classical type. They are faster, but since they run kernel code, it is hard to control what they do. For this reason, by default only the system administrator (the root user) can mount a filesystem using a kernel filesystem driver. The administrator can ...


-1

In order to mount a ISO/BIN/CUE file as a loopback device (i.e. mount -o loop) the user must be a member of the group with which is assigned to the file. Additional methods of mounting the file are to set the SUID bit, assign the user to the cdrom group, setting the user/group combination as options within the /etc/fstab file etc. See 'man mount' for more ...


0

Use losetup to check what each loop device refers to. Real disks should show up as one of sd[a-z], hd[a-z], vd[a-z], ... or if it's a card reader, maybe mmcblk[0-9]... Also, smartctl -a $device or hdparm -i $device should list name and type of the disk so you can verify you have the corerect one. Example for my Crucial M4 64GB: # hdparm -i /dev/sda ...


0

When you run it as root, losetup -f will automatically create loop devices as needed if there aren't any free ones available. So rather than doing it yourself with mknod, the easiest way to create a new loop device is with sudo losetup -f. That approach will give you a free existing loop device if one exists, or automatically create a new one if needed.



Top 50 recent answers are included