07-12-2004
Quote:
Originally posted by PxT
Check the man page for your version of lpr, the options vary. It may be the "-K" option.
thanks for the hint, but it does not work with my printer, and I have no idea why is that.
I heard that filter can solve this problem. Does any have a sample code to share?
10 More Discussions You Might Find Interesting
1. IP Networking
Hi all,
What is the difference between half duplex and full duplex? What are the advantages and disadvantages of each mode, if any?
Thanks. (3 Replies)
Discussion started by: sihong
3 Replies
2. Solaris
Hi All
I've been having a lot of errors logged on the Cisco Catalyst (4000 series) which one of my Solaris servers is patched into. I have a feeling they are duplex related, but I'm a bit stuck as to how to confirm that.
How do I:
1. Check the duplex settings on my eri0 card?
2. Set the... (3 Replies)
Discussion started by: saabir
3 Replies
3. UNIX for Dummies Questions & Answers
Dear Members,
I was reading a few posts and saw something about installing two Nics so one could use Full Duplex. I remember back in the day of dial up, you could have two modems and use one for upstream and one for downstream. This was called shotgunning. It seems that you can now do the same... (4 Replies)
Discussion started by: Phobos
4 Replies
4. Programming
what is meant by full duplex and half duplex?
b'coz in differences b\w hub and switch ,i heard lot this duplex word
so please help me (1 Reply)
Discussion started by: parvathy
1 Replies
5. Red Hat
how do you tell what duplex mode your box is running?
kinda like cat /proc/meminfo for memory usage..
is there a similar procedure that shows if the live kernel is running at 100-full or half etc...? (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies
6. Solaris
I need to change some Ip addresses for my servers to reflect in the NIS map.
I also need to force full duplex on the 10/100 cards & 1/2 duplex in the 10 cards.
I can change the IP by doing ifconfig <NIC card > plumb up <newip>.
Not quite sure on how to force the full / half duplex & how to... (2 Replies)
Discussion started by: Remi
2 Replies
7. SuSE
How do I configure full duplex on suse 8.2
I tried
ethtool -s eth0 speed 100 duplex full autoneg off
the above works but when I reboot the machine the configure was lost.
How do I configure full duplex so that when the machine get rebooted the configuration will stay.
My interface... (4 Replies)
Discussion started by: hassan2
4 Replies
8. Solaris
Hi,
How to find whether the server is running with half duplex or full duplex. I tried with the following command ndd -get /dev/ but am not getting any output,. Is the command correct?
Also let me know how to change from half to full duplex. (1 Reply)
Discussion started by: rogerben
1 Replies
9. AIX
How to change Speed Duplex !
How to change Speed Duplex by command
chdev -P -l ent1 -a media_speed=1000_Full_Duplex
How to change Speed Duplex by Smitty .
smitty chgenet -> select adapter -> change Media speed etc. -> set "Apply change to DATABASE only" to yes -> Enter -> ... (0 Replies)
Discussion started by: ITHelper
0 Replies
10. UNIX for Advanced & Expert Users
I am able to use duplex printing with the -o duplex option. I am also printing landscape. It prints on the back of the page, however, I have to flip the page in order to see the other side right side up. Is there another option that will allow the duplex printing to print the right side up on front... (9 Replies)
Discussion started by: nickg
9 Replies
LEARN ABOUT DEBIAN
sg_get_network_iface_stats
sg_get_network_iface_stats(3) Library Functions Manual sg_get_network_iface_stats(3)
NAME
sg_get_network_iface_stats - get network interface statistics
SYNOPSIS
#include <statgrab.h>
sg_network_iface_stats *sg_get_network_iface_stats(int *entries);
DESCRIPTION
The sg_get_network_iface_stats function takes a pointer to an int, entries, which is filled with the number of network interfaces the
machine has. This is needed to know how many sg_network_iface_stats structures have been returned. A pointer is returned to the first
sg_network_iface_stats.
sg_get_network_iface_stats returns statistics about the network interfaces in the machine. Specifically, it returns the speed of the inter-
face, the duplex state, and whether it is currently up.
RETURN VALUES
The sg_get_network_iface_stats returns a pointer to a structure of type sg_network_iface_stats.
typedef enum{
SG_IFACE_DUPLEX_FULL,
SG_IFACE_DUPLEX_HALF,
SG_IFACE_DUPLEX_UNKNOWN
}sg_iface_duplex;
Note: The SG_IFACE_DUPLEX_UNKNOWN value could mean that duplex hasn't been negotiated yet.
typedef struct{
char *interface_name;
int speed;
sg_iface_duplex duplex;
int up;
}sg_network_iface_stats;
interface_name
The name known to the operating system. (eg. on linux it might be eth0)
speed The speed of the interface, in megabits/sec.
duplex The duplex state the interface is in. See sg_iface_duplex for permitted values.
up Whether the interface is up.
SEE ALSO
statgrab(3)
WEBSITE
http://www.i-scream.org/libstatgrab/
i-scream $Date: 2005/07/13 09:31:53 $ sg_get_network_iface_stats(3)